package com.asset.dispoal.assetInstitutionBatchParameter.service.commom;

import com.asset.dispoal.assetInstitutionBatchParameter.domain.db.mapper.AssetInstitutionBatchParameterMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.core.ddd.BaseCommand;
import tech.mhuang.pacebox.springboot.protocol.Result;

/**
 * @author qr
 * @date 2022/3/29$
 */
@Component
public class ParameterDeleteCommand implements BaseCommand<String, Result> {

    @Autowired
    AssetInstitutionBatchParameterMapper assetInstitutionBatchParameterMapper;

    @Override
    public Result execute(String s) {
        assetInstitutionBatchParameterMapper.delete(s);
        return Result.ok();
    }
}
